package lab.gene.history.action;

import java.util.List;

import lab.gene.pojo.GenePCR;
import lab.gene.service.impl.GenePCRServiceImpl;

import com.opensymphony.xwork2.ActionSupport;

public class ViewGenePCRHistoryAction extends ActionSupport {
	
	private static final long serialVersionUID = 1L;
	private List<GenePCR> historyList = null;
	private String geneName = null;
	private String pcr = null;
	private String stepType = null;
	
	public String execute() {
		System.out.println("View PCR History");
		System.out.println(pcr);
		System.out.println(stepType);
		GenePCRServiceImpl service = new GenePCRServiceImpl();
		historyList = service.getGenePCRHistory(geneName, pcr, stepType);
		return "success";
	}
	
	
	public String getGeneName() {
		return geneName;
	}
	public void setGeneName(String geneName) {
		this.geneName = geneName;
	}


	public List<GenePCR> getHistoryList() {
		return historyList;
	}


	public void setHistoryList(List<GenePCR> historyList) {
		this.historyList = historyList;
	}


	public String getPcr() {
		return pcr;
	}


	public void setPcr(String pcr) {
		this.pcr = pcr;
	}


	public String getStepType() {
		return stepType;
	}


	public void setStepType(String stepType) {
		this.stepType = stepType;
	}
	

}
